<?Lassoscript
// Last modified 11/30/09 by Eric Landmann

// DEVELOPER'S NOTES
// This is to display the search params on the "You searched for" area of the search results page

// CHANGE NOTES
// 4/17/09
// Version 1.0
// 11/30/09
// Working on Admin

// Debugging
// Var:'svDebug' = 'Y';

Var:'svSearchParams' = (string);
Var:'svSearchParamsURL' = (string);
// Add initial question mark to start query string for URL
$svSearchParamsURL += '?DataType=Info';

// New
If: Var:'vNew' != '';
	$svSearchParamsURL += ('&New='($vNew));
/If;

// Name
If: Var:'vName' != '';
	$svSearchParams += ('<strong>Name</strong> ' ($vName));
	$svSearchParams += ', ';
	$svSearchParamsURL += ('&Name='($vName));
/If;

// Comment
If: Var:'vComment' != '';
	$svSearchParams += ('<strong>Comment:</strong> ' ($vComment));
	$svSearchParams += ', ';
	$svSearchParamsURL += ('&Comment='($vComment));
/If;

// Message
If: Var:'vDisplay' != '';
	$svSearchParams += ('<strong>Display:</strong> ' ($vDisplay));
	$svSearchParamsURL += ('&Display='($vDisplay));
/If;

// Remove trailing comma
$svSearchParams->RemoveTrailing(', ');

Debug;
	'64: svSearchParams = ' $svSearchParams '<br>\n';
	'64: svSearchParamsURL = ' $svSearchParamsURL '<br>\n';
/Debug;
?>